package org.sunflower.test;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2021-09-27 16:48
 **/
@Component
@Aspect
public class MyAop {

    @Before("@annotation(org.sunflower.test.Notice)")
    public void decrypt(JoinPoint joinPoint) {
        for (Object arg : joinPoint.getArgs()) {
            System.out.println(arg);
        }
    }
}
